package com.navinfo.platform.basicdatastatistics.utils.day;

import com.navinfo.platform.basicdatastatistics.dto.ExDataDto;
import org.apache.spark.sql.Row;

public class VehicleExDataUtil {
    public static ExDataDto parseRowToExDataDto(Row row) {
        ExDataDto exDataDto = new ExDataDto();
        exDataDto.setUid(row.getAs("uid"));
        exDataDto.setTid(row.getAs("tid"));
        exDataDto.setRpmRange500Urea(row.getAs("rpmRange500Urea"));
        exDataDto.setRpmRange600Urea(row.getAs("rpmRange600Urea"));
        exDataDto.setRpmRange700Urea(row.getAs("rpmRange700Urea"));
        exDataDto.setRpmRange800Urea(row.getAs("rpmRange800Urea"));
        exDataDto.setRpmRange900Urea(row.getAs("rpmRange900Urea"));
        exDataDto.setRpmRange1000Urea(row.getAs("rpmRange1000Urea"));
        exDataDto.setRpmRange1100Urea(row.getAs("rpmRange1100Urea"));
        exDataDto.setRpmRange1200Urea(row.getAs("rpmRange1200Urea"));
        exDataDto.setRpmRange1300Urea(row.getAs("rpmRange1300Urea"));
        exDataDto.setRpmRange1400Urea(row.getAs("rpmRange1400Urea"));
        exDataDto.setRpmRange1500Urea(row.getAs("rpmRange1500Urea"));
        exDataDto.setRpmRange1600Urea(row.getAs("rpmRange1600Urea"));
        exDataDto.setRpmRange1700Urea(row.getAs("rpmRange1700Urea"));
        exDataDto.setRpmRange1800Urea(row.getAs("rpmRange1800Urea"));
        exDataDto.setRpmRange1900Urea(row.getAs("rpmRange1900Urea"));
        exDataDto.setRpmRange2000Urea(row.getAs("rpmRange2000Urea"));
        exDataDto.setRpmRange2100Urea(row.getAs("rpmRange2100Urea"));
        exDataDto.setRpmRange2200Urea(row.getAs("rpmRange2200Urea"));
        exDataDto.setRpmRange2300Urea(row.getAs("rpmRange2300Urea"));
        exDataDto.setRpmRange2400Urea(row.getAs("rpmRange2400Urea"));
        exDataDto.setRpmRange2500Urea(row.getAs("rpmRange2500Urea"));
        exDataDto.setRpmRange2600Urea(row.getAs("rpmRange2600Urea"));
        exDataDto.setRpmRange2700Urea(row.getAs("rpmRange2700Urea"));
        exDataDto.setRpmRange2800Urea(row.getAs("rpmRange2800Urea"));
        exDataDto.setRpmRange2900Urea(row.getAs("rpmRange2900Urea"));
        exDataDto.setRpmRange3000Urea(row.getAs("rpmRange3000Urea"));
        exDataDto.setRpmRangeOver3000Urea(row.getAs("rpmRangeOver3000Urea"));
        exDataDto.setSpeedRange01Urea(row.getAs("speedRange01Urea"));
        exDataDto.setSpeedRange02Urea(row.getAs("speedRange02Urea"));
        exDataDto.setSpeedRange03Urea(row.getAs("speedRange03Urea"));
        exDataDto.setSpeedRange04Urea(row.getAs("speedRange04Urea"));
        exDataDto.setSpeedRange05Urea(row.getAs("speedRange05Urea"));
        exDataDto.setSpeedRange06Urea(row.getAs("speedRange06Urea"));
        exDataDto.setSpeedRange07Urea(row.getAs("speedRange07Urea"));
        exDataDto.setSpeedRange08Urea(row.getAs("speedRange08Urea"));
        exDataDto.setSpeedRange09Urea(row.getAs("speedRange09Urea"));
        exDataDto.setSpeedRange10Urea(row.getAs("speedRange10Urea"));
        exDataDto.setSpeedRange11Urea(row.getAs("speedRange11Urea"));
        exDataDto.setSpeedRange12Urea(row.getAs("speedRange12Urea"));
        exDataDto.setExceedSpeedRangeUrea(row.getAs("exceedSpeedRangeUrea"));
        exDataDto.setTorque0Urea(row.getAs("torque0Urea"));
        exDataDto.setTorque10Urea(row.getAs("torque10Urea"));
        exDataDto.setTorque20Urea(row.getAs("torque20Urea"));
        exDataDto.setTorque30Urea(row.getAs("torque30Urea"));
        exDataDto.setTorque40Urea(row.getAs("torque40Urea"));
        exDataDto.setTorque50Urea(row.getAs("torque50Urea"));
        exDataDto.setTorque60Urea(row.getAs("torque60Urea"));
        exDataDto.setTorque70Urea(row.getAs("torque70Urea"));
        exDataDto.setTorque80Urea(row.getAs("torque80Urea"));
        exDataDto.setTorque90Urea(row.getAs("torque90Urea"));
        exDataDto.setTorque99Urea(row.getAs("torque99Urea"));
        exDataDto.setTorque100Urea(row.getAs("torque100Urea"));
        exDataDto.setGasOpenPercent0Urea(row.getAs("gasOpenPercent0Urea"));
        exDataDto.setGasOpenPercent10Urea(row.getAs("gasOpenPercent10Urea"));
        exDataDto.setGasOpenPercent20Urea(row.getAs("gasOpenPercent20Urea"));
        exDataDto.setGasOpenPercent30Urea(row.getAs("gasOpenPercent30Urea"));
        exDataDto.setGasOpenPercent40Urea(row.getAs("gasOpenPercent40Urea"));
        exDataDto.setGasOpenPercent50Urea(row.getAs("gasOpenPercent50Urea"));
        exDataDto.setGasOpenPercent60Urea(row.getAs("gasOpenPercent60Urea"));
        exDataDto.setGasOpenPercent70Urea(row.getAs("gasOpenPercent70Urea"));
        exDataDto.setGasOpenPercent80Urea(row.getAs("gasOpenPercent80Urea"));
        exDataDto.setGasOpenPercent90Urea(row.getAs("gasOpenPercent90Urea"));
        exDataDto.setGasOpenPercent99Urea(row.getAs("gasOpenPercent99Urea"));
        exDataDto.setGasOpenPercent100Urea(row.getAs("gasOpenPercent100Urea"));
        return exDataDto;
    }
}
